package org.jeecg.modules.sistersophie.service.impl;

import org.apache.commons.lang.StringUtils;
import org.jeecg.modules.sistersophie.entity.CourseInfo;
import org.jeecg.modules.sistersophie.entity.StudentInfo;
import org.jeecg.modules.sistersophie.mapper.CourseInfoMapper;
import org.jeecg.modules.sistersophie.service.ICourseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: course_info
 * @Author: jeecg-boot
 * @Date:   2021-06-04
 * @Version: V1.0
 */
@Service
public class CourseInfoServiceImpl extends ServiceImpl<CourseInfoMapper, CourseInfo> implements ICourseInfoService {

    @Autowired
    private CourseInfoMapper courseInfoMapper;


    public List<CourseInfo> selectByNameNotIn(String courseName, Integer notId){
        if(StringUtils.isNotBlank(courseName)){
            courseName = courseName.trim().replaceAll(" ","");
        }
        return courseInfoMapper.selectByNameNotIn(courseName,notId);
    }
}
